<!DOCTYPE html>
<html lang="zh-hans" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1" name="viewport">
    <title>注册</title>
    <!-- 离线 Google 字体: Source Sans Pro -->
    <link rel="stylesheet" th:href="@{/dist/css/google.css}" type="text/css">
    <!-- Font Awesome -->
    <link rel="stylesheet" th:href="@{/plugins/fontawesome-free/css/all.min.css}" type="text/css">
    <!-- icheck bootstrap -->
    <link rel="stylesheet" th:href="@{/plugins/icheck-bootstrap/icheck-bootstrap.min.css}" type="text/css">
    <!-- 主题样式 -->
    <link rel="stylesheet" th:href="@{/dist/css/adminlte.min.css}" type="text/css">
    <script th:src="@{/js/register.js}" type="text/javascript"></script>
</head>
<body class="hold-transition register-page">
<div class="register-box">
    <div class="register-logo">
        <a th:href="@{/register}"><b>系统</b>注册</a>
    </div>
    <div class="card">
        <div class="card-body register-card-body">
            <p class="login-box-msg">注册新账户</p>
            <form method="post" onsubmit="return passwordCheck()" th:action="@{/register}">
                <div class="input-group mb-3">
                    <input class="form-control" name="userName" placeholder="用户名" type="text">
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <span class="fas fa-user"></span>
                        </div>
                    </div>
                </div>
                <div class="input-group mb-3">
                    <input class="form-control" name="userNick" placeholder="姓名" type="text">
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <span class="fas fa-user"></span>
                        </div>
                    </div>
                </div>
                <div class="input-group mb-3">
                    <input class="form-control" name="password" placeholder="输入密码" type="password">
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <span class="fas fa-lock"></span>
                        </div>
                    </div>
                </div>
                <div class="input-group mb-3">
                    <input class="form-control" name="userPassword2" placeholder="再次输入密码" type="password">
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <span class="fas fa-lock"></span>
                        </div>
                    </div>
                </div>
                <div class="input-group mb-3">
                    <input class="form-control" name="userPhone" placeholder="电话" type="text">
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <span class="fas fa-phone"></span>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <!-- /.col -->
                    <div class="col-4">
                        <button class="btn btn-primary btn-block" type="submit">注册</button>
                    </div>
                    <!-- /.col -->
                </div>
                <h1 style="font-size: 18px" th:text="${registermsg}"></h1>
            </form>

            <a class="text-center" th:href="@{/login}">我已经有账号了</a>
        </div>
        <!-- /.form-box -->
    </div><!-- /.card -->
</div>
<!-- /.register-box -->

<!-- jQuery -->
<script th:src="@{/plugins/jquery/jquery.min.js}"></script>
<!-- Bootstrap 4 -->
<script th:src="@{/plugins/bootstrap/js/bootstrap.bundle.min.js}"></script>
<!-- AdminLTE App -->
<script th:src="@{/dist/js/adminlte.min.js}"></script>
</body>
</html>
